package com.cskaoyan.util;

import java.util.Random;

/**
 * @author 小黑球
 * @datetime 2023/1/1 20:49
 * @description: TODO:
 */
public class RandomUtil {
    public static String couponCode() {
        Random random = new Random();
        StringBuffer stringBuffer = new StringBuffer();
        String str = "QWERTYUIPASDFGHJKLZXCVBNM123456789";
        for (int j = 0; j < 8; j++) {
            stringBuffer.append(str.charAt(random.nextInt(str.length())));
        }
        return stringBuffer.toString();
    }
}
